using System;
using System.Collections;
using KangaUtils;

namespace TimeSheet.Logger
{
    /// <summary>
    /// Summary description for ExceptionLogger.
    /// </summary>
    public class ExceptionLogger
    {
        private static ArrayList exceptions = new ArrayList();

        public static void AddException(Exception ex)
        {
            MailUtils.SendEmail(
                AppSettings.SmtpServer,
                "Timesheet Exception",
                "<p>" + ex.Message + "</p><p>" + ex.StackTrace + "</p>",
                "timesheet@kanga.ca",
                AppSettings.AdminEmail);
        }
    } //class
} //namespace